.tree-panel {
    position: relative;
    color: @subTitleColor;
    .user-select();
    .no-padding;

    .panel-heading {
        height: @tree-node-height;
        line-height: @tree-node-height;
        .no-padding;
        .no-border;
        background: @mainColor;
    }

    .panel-body {
        .no-padding;
        .tree-node {
            &.selected {
                > .tree-node-line > .tree-node-text {
                    color: @mainColor;
                }
            }
            .tree-node-text .icon {
                margin-right: 5px;
            }
        }
    }

    .tree-node-line {
        height: @tree-node-height;
        line-height: @tree-node-height;
        font-size: 14px;
        position: relative;
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid @borderColor;

        // &:hover > .tree-node-text {
        //     color: @mainColor;
        // }
    }

    // .tree-node {
    //     &.selected {
    //         > .tree-node-line > .tree-node-text {
    //             color: @mainColor;
    //         }
    //     }
    //
    //     .tree-node-text .icon {
    //         margin-right: 5px;
    //     }
    // }

    .tree-root-node {
        background-color: @mainColor;
        .border-radius();

        .tree-node-line {
            color: #fff;
        }

        .tree-node-action a:hover {
            color: @mainColor;
            background-color: white;
            .border-radius(30px);
        }
    }

    .tree-node-text {
        float: left;
        cursor: pointer;
        text-indent: 1em;
        border: none;
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        height: 36px;
        line-height: 36px;
        margin: 3px 0;
    }

    .tree-node-action {
        text-align: right;
        float: right;
        width: 120px;
        margin-right: 7px;

        a,
        i {
            width: 16px;
            height: 16px;
            display: inline-block;
            text-align: center;
            line-height: 16px;
            margin-left: 2px;
            cursor: pointer;
            position: relative;
            .border-radius(30px);
            color: white;
        }
    }

    .tree-search {
        height: 0;
        border: 1px solid @mainColor;
        background-color: white;
        .absolute-fill(0,0,inherit,0);
        overflow: hidden;
        transition: all 0.5s ease;

        input {
            .no-border;
            .absolute-fill();
            width: 100%;

            &:active,
            &:focus {
                outline: none;
            }
        }

        .icon {
            color: #999;
            position: absolute;
            right: 3px;
            width: 30px;
            text-align: center;
        }
    }

    &.show-action {
        .tree-search {
            height: @tree-node-height;
            line-height: @tree-node-height;
        }
    }
}

.tree .icon {
    color: #000000!important;
}
